package com.dlc.shop.systemtest.data.amount;

import com.dlc.shop.bean.model.ShopBankCard;
import com.dlc.shop.bean.model.ShopWithdrawCash;
import com.dlc.shop.systemtest.api.amount.ShopBankCardApi;

import java.util.List;

/**
 * @author lanhai
 */
public class ShopWithdrawCashData {
    public static ShopWithdrawCash getShopWithdrawCashApply(Double amount,String code, Integer status){
        ShopWithdrawCash shopWithdrawCash = new ShopWithdrawCash();
        List<ShopBankCard> shopBankCardList = ShopBankCardApi.getShopBankCardList();
        shopWithdrawCash.setAmount(amount);
        shopWithdrawCash.setShopBankCardId(shopBankCardList.get(0).getShopBankCardId());
        shopWithdrawCash.setCode(code);
        shopWithdrawCash.setPayingAccount("1");
        shopWithdrawCash.setPayingCardNo("1");
        shopWithdrawCash.setPayingTime("");
        shopWithdrawCash.setStatus(status);
        return shopWithdrawCash;
    }
}
